package cn.sxt.seata.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import cn.sxt.seata.entity.Storage;
import cn.sxt.seata.mapper.StorageMapper;
import cn.sxt.seata.service.StorageService;
/**
 * @description: --
 * @author：Bing
 * @date：2021/4/19 15:32
 * @version：1.0
 */
@Service
public class StorageServiceImpl implements StorageService{

    @Resource
    private StorageMapper storageMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return storageMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Storage record) {
        return storageMapper.insert(record);
    }

    @Override
    public int insertSelective(Storage record) {
        return storageMapper.insertSelective(record);
    }

    @Override
    public Storage selectByPrimaryKey(Long id) {
        return storageMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Storage record) {
        return storageMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Storage record) {
        return storageMapper.updateByPrimaryKey(record);
    }

}
